# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Panagiotis Papadopoulos

pkgname=wildmidi
pkgver=0.4.2
pkgrel=1
pkgdesc='Open Source MIDI Synthesizer'
arch=('x86_64')
url="https://www.mindwerks.net/projects/wildmidi/"
license=('LGPL3')
depends=('alsa-lib')
makedepends=('cmake')
source=(https://github.com/psi29a/wildmidi/archive/wildmidi-${pkgver}.tar.gz)
sha256sums=('551d43cb6de6019885f933a20b6f3205a92814f50da8b0d8bceac002b9a8109d')

prepare() {
  mkdir build
}

build() {
  cd build
  cmake -D CMAKE_INSTALL_PREFIX=/usr ../$pkgname-$pkgname-$pkgver
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}
